﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace crip.Models
{
    /// <summary>
    /// 收集
    /// </summary>
    public class DataCollection
    {
        //ID
        [Key]
        public Guid Id { get; set; }
        [Required]
        //描述/文本
        public string? Description { get; set; }
        //文件存储URL
        public ICollection<string> FileURLs  = new List<string>(); 
        //事件外键
        [ForeignKey("EventId")]
        public Guid EventId { get; set; }
        public Event? Event { get; set; }
        //用户外键
        [ForeignKey("UserId")]
        public Guid UserId { get;set; }
        public CripUser? User { get; set; }


    }
}
